//
//  C_OC_SwiftTests.swift
//  C_OC_SwiftTests
//
//  Created by Finer  Vine on 2019/6/9.
//  Copyright © 2019 Vine. All rights reserved.
//

import XCTest
@testable import C_OC_Swift

class C_OC_SwiftTests: XCTestCase {

    override func setUp() {
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }

    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
    }

    func testExample() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
    }

    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
    
    func testCPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
            //C
            //直接调用C函数
            cStarFunction()
        }
    }
    
    func testOCPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
            //OC
            let ocTest = MyOCTest()
            ocTest.ocStarFunction()
        }
    }
    
    func testSwiftPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
            //swift
            let swiftTest = MySwiftTest()
            swiftTest.swiftStarFunction()
        }
    }

}
